import request from '@/utils/request'

// 查询大客户流程列表
export function listBigcustomer(query) {
  return request({
    url: '/system/bigcustomer/list',
    method: 'get',
    params: query
  })
}

// 查询请假列表
export function listCustomerAll(query) {
  return request({
    url: '/system/bigcustomer/listAll',
    method: 'get',
    params: query
  })
}

// 查询大客户流程详细
export function getBigcustomer(id) {
  return request({
    url: '/system/bigcustomer/' + id,
    method: 'get'
  })
}

// 新增大客户流程
export function addBigcustomer(data) {
  return request({
    url: '/system/bigcustomer',
    method: 'post',
    data: data
  })
}

// 修改大客户流程
export function updateBigcustomer(data) {
  return request({
    url: '/system/bigcustomer',
    method: 'put',
    data: data
  })
}

// 删除大客户流程
export function delBigcustomer(id) {
  return request({
    url: '/system/bigcustomer/' + id,
    method: 'delete'
  })
}

// 导出大客户流程
export function exportBigcustomer(query) {
  return request({
    url: '/system/bigcustomer/export',
    method: 'get',
    params: query
  })
}
